﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Linq;
using System.ServiceProcess;
using System.Text;
using System.Threading;
using System.Threading.Tasks;

namespace ControllerManageServer
{
    /// <summary>
    /// 控制器管理服务
    /// </summary>
    public partial class ControllerManageServer : ServiceBase
    {
        /// <summary>
        /// 主业务
        /// </summary>
        private MainBLL mainBLL;
        public ControllerManageServer()
        {
            InitializeComponent();
        }

        protected override void OnStart(string[] args)
        {
            Thread.Sleep(15 * 1000);
            mainBLL = new MainBLL();
            mainBLL.Start();
        }

        protected override void OnStop()
        {
            mainBLL.Stop();
        }
    }
}
